package com.example.ovulationperiodtracker.adapter;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.NonNull;

import com.example.ovulationperiodtracker.databinding.AdapterMineSetBinding;
import com.example.ovulationperiodtracker.model.MineSet;
import com.necer.base.NBaseAdapter;




public class MineAdapter extends NBaseAdapter<MineSet, AdapterMineSetBinding> {
    @Override
    public AdapterMineSetBinding createBinding(@NonNull LayoutInflater inflater, @NonNull ViewGroup parent) {
        return AdapterMineSetBinding.inflate(inflater);
    }

    @Override
    public void bind(@NonNull AdapterMineSetBinding binding, @NonNull MineSet item, int position) {

        binding.txt1Settings.setText(item.title);
        binding.txt2Settings.setText(item.desc);
        binding.optionalText.setText(item.value);
    }
}
